import request from '../../request';
import * as apis from '@shared/apis';


export interface IServiceListParams {
    /** 页码 */
    page: number;
    /** 每页数量 */
    pageSize: number;
    /** 搜索关键词 */
    keyword?: string;
}

export interface IServiceListResponse {
    /** 服务列表数据 */
    items: apis.services.IServices[];
    pagination: {
        /** 总数量 */
        total: number;
        /** 当前页码 */
        page: number;
        /** 每页数量 */
        pageSize: number;
    };
}

export const post = async (params: IServiceListParams): Promise<IServiceListResponse> => {
    const res = await request.post('/services/list', params);
    return res.data;
}; 